package com.fauks.ssm.spring.bean;

import java.util.List;

public class SpringBean {

    private String name;
    private OtherBean otherBean;

    private List<String> children;

    public SpringBean() {
    }

    public SpringBean(String name) {
        this.name = name;
    }

    public void sayHello() {
        System.out.println("SpringBean hello");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public OtherBean getOtherBean() {
        return otherBean;
    }

    public void setOtherBean(OtherBean otherBean) {
        this.otherBean = otherBean;
    }

    public List<String> getChildren() {
        return children;
    }

    public void setChildren(List<String> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "SpringBean{" +
                "name='" + name + '\'' +
                ", otherBean=" + otherBean +
                '}';
    }
}
